<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="net.sureon.dao.*" %>
<%@page import="net.sureon.common.SureonConstants"%>
<%
	List<DailyTimingStatistic> all = null;
	all = (List<DailyTimingStatistic>)request.getAttribute("all");
 %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<!-- saved from url=(0044)http://www.sureon.net/WebPage/Statistic.aspx -->
<HTML xmlns="http://www.w3.org/1999/xhtml">
	<HEAD>
		<TITLE>考勤统计</TITLE>
		<META content="text/html; charset=utf-8" http-equiv=Content-Type>
		<META name=GENERATOR content="MSHTML 8.00.6001.18702">
	</HEAD>
	<BODY>
	<jsp:include page="../header.jsp"></jsp:include>
<%
	String navBar = (String) request.getSession().getAttribute(SureonConstants.NAV_BAR_DISPLAY);
  %>
			<DIV>
				<TABLE class=style1 cellSpacing=0 cellPadding=0>
					<TBODY>
						<TR>
							<TD colSpan=2>
								<TABLE class=style5 cellSpacing=0 cellPadding=0>
									<TBODY>

										<TR>
											<TD style="TEXT-ALIGN: left" class=style6 bgColor=#fffbd6>
												<TABLE id=ctl00_ContentPlaceHolder1_Menu1
													class=ctl00_ContentPlaceHolder1_Menu1_2 border=0
													cellSpacing=0 cellPadding=0>
													<TBODY>
														<TR>
															<TD id=ctl00_ContentPlaceHolder1_Menu1n0
																onmouseover=Menu_HoverStatic(this)
																onkeyup=Menu_Key(this) onmouseout=Menu_Unhover(this)>
																<TABLE
																	class="ctl00_ContentPlaceHolder1_Menu1_4 ctl00_ContentPlaceHolder1_Menu1_9"
																	border=0 cellSpacing=0 cellPadding=0 width="100%">
																	<TBODY>
																		<TR>

																			<TD style="WHITE-SPACE: nowrap">
																				<A
																					class="ctl00_ContentPlaceHolder1_Menu1_1 ctl00_ContentPlaceHolder1_Menu1_3 ctl00_ContentPlaceHolder1_Menu1_8"
																					href="<%=request.getContextPath() %>/user/myDailyTimingStatistic.do">我的考勤统计</A>
																			</TD>
																		</TR>
																	</TBODY>
																</TABLE>
															</TD>
															<TD style="WIDTH: 3px"></TD>
				<%
					// 判断用户是否为GroupAdmin/CompanyAdmin
						if(SureonConstants.NAV_BAR_DISPLAY_GROUP.equals(navBar) || SureonConstants.NAV_BAR_DISPLAY_ADMIN.equals(navBar)) {
				 %>	

															<TD id=ctl00_ContentPlaceHolder1_Menu1n1
																onmouseover=Menu_HoverStatic(this)
																onkeyup=Menu_Key(this) onmouseout=Menu_Unhover(this)>
																<TABLE class=ctl00_ContentPlaceHolder1_Menu1_4 border=0
																	cellSpacing=0 cellPadding=0 width="100%">
																	<TBODY>
																		<TR>
																			<TD style="WHITE-SPACE: nowrap">
																				<A
																					class="ctl00_ContentPlaceHolder1_Menu1_1 ctl00_ContentPlaceHolder1_Menu1_3"
																					href="<%=request.getContextPath() %>/user/underlingDailyTimingStatistic.do">下属考勤统计</A>
																			</TD>
																		</TR>
																	</TBODY>
																</TABLE>
															</TD>
<%
}
%>
<%
		if(SureonConstants.NAV_BAR_DISPLAY_ADMIN.equals(navBar)) {
	
 %>	

											<td style="width: 3px;"></td>
												<TD id=ctl00_ContentPlaceHolder1_Menu1n1
																onmouseover=Menu_HoverStatic(this)
																onkeyup=Menu_Key(this) onmouseout=Menu_Unhover(this)>
																<TABLE class=ctl00_ContentPlaceHolder1_Menu1_4 border=0
																	cellSpacing=0 cellPadding=0 width="100%">
																	<TBODY>
																		<TR>
																			<TD style="WHITE-SPACE: nowrap">
																				<A
																					class="ctl00_ContentPlaceHolder1_Menu1_1 ctl00_ContentPlaceHolder1_Menu1_3"
																					href="<%=request.getContextPath() %>/admin/adminDailyTimingStatistic.do">公司人员考勤统计</A>
																			</TD>
																		</TR>
																	</TBODY>
																</TABLE>
															</TD>
	<%
		}
	 %>
														</TR>
													</TBODY>
												</TABLE>
												<A id=ctl00_ContentPlaceHolder1_Menu1_SkipLink></A>
											</TD>
										</TR>
										<TR>

											<TD style="TEXT-ALIGN: left">
												<TABLE class=style5 cellSpacing=0 cellPadding=0>
													<TBODY>
														<TR>
															<TD style="TEXT-ALIGN: left">
																<DIV>
																	<TABLE
																		style="WIDTH: 100%; BORDER-COLLAPSE: collapse; FONT-FAMILY: Arial; COLOR: #333333; FONT-SIZE: small"
																		id=ctl00_ContentPlaceHolder1_GridView2 border=0
																		cellSpacing=0 cellPadding=4>
																		<TBODY>
																			<TR
																				style="BACKGROUND-COLOR: #507cd1; COLOR: white; FONT-WEIGHT: bold"
																				align=middle>

																				<TH scope=col style="COLOR: white">起始日期</TH>
																				<TH scope=col style="COLOR: white">终止日期</TH>
																				<TH scope=col  style="COLOR: white">工作时间</TH>
																				<TH scope=col  style="COLOR: white">加班时间</TH>
																				<TH scope=col  style="COLOR: white">休假时间</TH>
																				<TH scope=col  style="COLOR: white">请假时间</TH>

																				<TH scope=col>
																					&nbsp;
																				</TH>
																			</TR>
																	<%
																			for(int i = 0; i < all.size(); i ++){
																				DailyTimingStatistic dts = all.get(i);
																			
																	 %>		
																			<TR style="BACKGROUND-COLOR: #eff3fb" align=middle>
																				<TD>
																					<%=dts.getStartDate() %>
																				</TD>
																				<TD>
																					<%=dts.getEndDate() %>
																				</TD>
																				<TD>
																					<%=dts.getTotalWorkTime() %>
																				</TD>
																				<TD>
																					<%=dts.getTotalOverTime() %>
																				</TD>
																				<TD>
																					<%=dts.getTotalvocationTime() %>
																				</TD>

																				<TD>
																					<%=dts.getTotalLeaveTime() %>
																			</TR>
																	<%
																			}
																	 %>
																		</TBODY>
																	</TABLE>
																</DIV>
															</TD>
														</TR>
													</TBODY>
												</TABLE>
											</TD>
										</TR>
									</TBODY>
								</TABLE>
							</TD>
						</TR>

					</TBODY>
				</TABLE>
			</DIV>
		<jsp:include page="../footer.jsp"></jsp:include>
	</BODY>
</HTML>
